<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude" py:strip="">
<head py:match='head'>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  <title py:if="defined('pagetitle')" py:content="pagetitle" />
  <style type="text/css">
    @import "/wp/webpyte.css";
  </style>
  ${select('*')}
</head>

<body py:match="body">
  <div id="Dimensions">
    <div id="Header" class="Pad">
        <a href="http://code.google.com/p/webpyte/"><img alt="webpyte" src="/wp/webpyte-logo-height050.png" title="sistema de sites open source" /></a>
        <p py:if='defined("auth")' id="Login" class="Little">
          <a py:if="not auth.current_login"
             href='${url("Auth", action="login")}'>login</a>
          <span py:if="auth.current_login">
            <a href='${url("Auth", action="register")}'>Usuário: ${auth.current_user.display_name}</a>.
            <a href='${url("Auth", action="logout")}'>Logout</a>
          </span>
        </p>
        ${select('div[@id="SideContent"]')}
        <div py:match='div[@id="SideContent"]' />
    </div>
    
    <div py:if="defined('listRendered')" class="Pad Relevance2" py:content="Markup(listRendered)" />
    
    <div class="Pad">
      <h1 py:if="defined('pagetitle')">${pagetitle} &nbsp; <a py:if='defined("urlView") and urlView is not None' href="${urlView}"><img src="/wp/view.png" alt="visualizar" title="visualizar" /></a></h1>
      <div py:if="has_flash()" class="Status Pad" py:content="flash()"></div>
      ${select('*[@id != "SideContent"]')}
    </div>
    
    <div id="Footer" class="Pad Relevance2 Minuscule">
      Criado por <a href="http://www.oui.com.br" target="_blank">oui</a>. &nbsp;
      <a href="/">Capa do site</a>
    </div>
	</div>
</body>
</html>
